package com.cjkj.system.service;

import com.cjkj.system.api.domain.APIHospitalEquipment;
import com.cjkj.system.api.domain.dto.APIEquipmentStatusDto;
import com.cjkj.system.domain.dto.HospitalEquipmentDistributionReq;
import com.cjkj.system.domain.dto.HospitalEquipmentReq;
import com.cjkj.system.domain.vo.HospitalEquipmentOptionsVo;
import com.cjkj.system.domain.vo.HospitalEquipmentVo;

import java.util.List;
import java.util.Map;

/**
 * 医院分配的设备Service接口
 * 
 * @author cjkj
 * @date 2024-08-30
 */
public interface ITHospitalEquipmentService 
{

    /**
     * 查询医院分配的设备列表
     *
     * @param req 查询条件
     * @return 医院分配的设备集合
     */
    List<HospitalEquipmentVo> selectTHospitalEquipmentList(HospitalEquipmentReq req);

    APIHospitalEquipment getHospitalEquipment(String equipmentId);

    int updateEquipmentStatus(APIEquipmentStatusDto dto);

    String distributionEquipment(HospitalEquipmentDistributionReq req);

    /**
     * 获取到期的设备数据
     * @param equipmentType 设备类型
     * @return
     */
    List<Map<String, Integer>> getExpireData(String equipmentType);

    /**
     * 获取故障设备
     * @param equipmentType 设备类型
     * @return
     */
    List<Map<String, String>> getFaultyEquipment(String equipmentType);

    /**
     * 获取下拉选项数据
     * @param equipmentType
     * @return
     */
    List<HospitalEquipmentOptionsVo> getEquipmentOptionData(String equipmentType);

}
